﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using System.Configuration;

namespace ConnectionLayer
{
    /*Peseudo Connection Factory*/

    public class ConnectionFactory
    {
        //private String ConString = @"Data Source=(local);Initial Catalog=TP_SI2_1213i;uid=sa;pwd=2635inambu;";
        private String ConString = ConfigurationManager.ConnectionStrings["TP_SI2_1213i"].ConnectionString;

        private SqlConnection con;

        public ConnectionFactory()
        {
            con = new Connection(ConString).Con;
        }

        public SqlConnection GetConnection { get { return con; } set { } }


    }


}
